const { contextBridge, ipcRenderer } = require('electron')

contextBridge.exposeInMainWorld('myAPI', {
  getSource: () => ipcRenderer.invoke('local-capturer'),
  setSource: (callback) => ipcRenderer.on('set-source', callback)
})